package com.ruoyi.ring.service;

import com.ruoyi.ring.domain.RingDeviceAichat;

import java.util.List;

/**
 * AI聊天Service接口
 * 
 * @author liuwp
 * @date 2025-10-11
 */
public interface IRingDeviceAichatService 
{
    /**
     * 查询AI聊天
     * 
     * @param id AI聊天主键
     * @return AI聊天
     */
    public RingDeviceAichat selectRingDeviceAichatById(Long id);

    /**
     * 查询AI聊天列表
     * 
     * @param ringDeviceAichat AI聊天
     * @return AI聊天集合
     */
    public List<RingDeviceAichat> selectRingDeviceAichatList(RingDeviceAichat ringDeviceAichat);

    /**
     * 根据业务主键查询一条记录：AI聊天
     *
     * @param ringDeviceAichat AI聊天
     * @return AI聊天
     */
    public RingDeviceAichat selectOneRingDeviceAichat(RingDeviceAichat ringDeviceAichat);

    /**
     * 新增AI聊天
     * 
     * @param ringDeviceAichat AI聊天
     * @return 结果
     */
    public int insertRingDeviceAichat(RingDeviceAichat ringDeviceAichat);

    /**
     * 修改AI聊天
     * 
     * @param ringDeviceAichat AI聊天
     * @return 结果
     */
    public int updateRingDeviceAichat(RingDeviceAichat ringDeviceAichat);

    /**
     * 修改AI聊天
     *
     * @param ringDeviceAichat AI聊天
     * @param ringDeviceAichat AI聊天条件
     * @return 结果
     */
    public int updateRingDeviceAichatCondition(RingDeviceAichat ringDeviceAichat, RingDeviceAichat ringDeviceAichatCondition);

    /**
     * 批量删除AI聊天
     * 
     * @param ids 需要删除的AI聊天主键集合
     * @return 结果
     */
    public int deleteRingDeviceAichatByIds(Long[] ids);

    /**
     * 删除AI聊天信息
     * 
     * @param id AI聊天主键
     * @return 结果
     */
    public int deleteRingDeviceAichatById(Long id);

    /**
     * 条件删除AI聊天
     *
     * @param ringDeviceAichat AI聊天
     * @return 结果
     */
    public int deleteRingDeviceAichatByCondition(RingDeviceAichat ringDeviceAichat);

    /**
     * ai聊天自动回复接口
     * @param deviceAichats  聊天历史10条数据
     * @return   ai自动回复数据
     */
    public RingDeviceAichat aichatAutoReply(List<RingDeviceAichat> deviceAichats);
}
